import useRequest from "@/api/useRequest";

export class pluginControllerApi {
  static getPluginStatus() {
    return useRequest({
      url: "/plugin/getStatus",
      method: "get"
    })
  }


  static closePlugin() {
    return useRequest({
      url: "/plugin/close",
      method: "get"
    })
  }


  static startPlugin() {
    return useRequest({
      url: "/plugin/start",
      method: "get"
    })
  }


  static getLLMStatus = () => {
    return useRequest({
        url: "/plugin/llm/getStatus",
        method: "get"
    })
  }

  static startLLM = () => {
    return useRequest({
        url: "/plugin/llm/start",
        method: "get"
    })
  }

  static closeLLM = () => {
    return useRequest({
        url: "/plugin/llm/close",
        method: "get"
    })
  }

  static getLocalModelName = () => {
    return useRequest({
        url: "/plugin/llm/getModel",
        method: "get"
    })
  }
}
